<h2>我的租车</h2>

<ul class="heroes">
  <li *ngFor="let hero of heroes" (click)="onSelect(hero)" [class.selected]="hero === selectedHero">
    <span class="badge">{{hero.id}}</span>
    <span>{{hero.brand}}</span>
    <button class="delete" (click)="deleteHero(hero); $event.stopPropagation()">还车</button>
  </li>
</ul>
